package com.example.excelapache_poi.service;
import com.example.excelapache_poi.dto.UserDto;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by IntelliJ IDEA2022.3.2
 * @Author: Tenghw
 * @Date: 2023/07/03  22:30
 * @Description:
 */
public interface UserService {
    /**
     * 上传/导入
     * @param file
     * @return responseEntity
     */
    ResponseEntity uploadExcel(MultipartFile file);

    /**
     * 下载/导出
     * @param response
     * @param userDto
     * @return
     */
    void downLoadExcel(HttpServletResponse response, UserDto userDto);

}
